<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
     		<li><a href="{:U('Analysis/index')}">数据汇总</a></li>
     		<li><a href="{:U('Analysis/day')}">单日统计</a></li>
            <li><a href="{:U('Analysis/activity')}">活动统计</a></li>
            <li><a href="{:U('Analysis/materials')}">物料统计</a></li>
            <li><a href="{:U('Analysis/equipment')}">设备统计</a></li>
            <li><a href="{:U('Analysis/users')}">用户统计</a></li>
            <li><a href="{:U('Analysis/winning')}">中奖记录</a></li>
            <li class="active"><a href="{:U('Analysis/withdraw')}">提现记录</a></li>
            <li><a href="{:U('Analysis/logs')}">摇摇记录</a></li>
            <li><a href="{:U('Analysis/urls')}">链接记录</a></li>
        </ul>
        <form class="well form-search js-ajax-form" method="post" action="{:U('Analysis/withdraw')}">
        	用户ID:
            <input type="text" name="keyword" value="{:I('param.keyword')}" autocomplete="off" >
            时间范围:
            <input type="text" name="start_time" style="width: 80px;" class="js-datetime" value="{:I('param.start_time')}" autocomplete="off"> ~
            <input type="text" name="end_time" style="width: 80px;" class="js-datetime" value="{:I('param.end_time')}" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <if condition="$count" >共查询到 {$count} 条数据</if>
        	<button class="btn btn-primary js-ajax-submit" type="submit" data-action="{:U('Analysis/outwithdrawcsv')}">查询导出</button>

        </form>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
						<th>ID</th>
						<th>提现时间</th>
						<th>用户ID</th>
						<th>用户昵称</th>
						<th>提现金额(元)</th>
						<th>状态</th>
						<th>祝福语</th>
						<th>名称</th>
						<th>备注</th>
						<th>类型</th>
                    </tr>
                </thead>
					<foreach name="wxpayorder" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.time}</td>
						<td>{$vo.openid}</td>
						<td><foreach name="realuser" item="user">
							<if condition="$user['weixin_id'] eq $vo['openid']" > {$user.nickname}</if>
						</foreach></td>
						<td>{$vo['total_amount']/100}</td>
						<td>{$wxpay_status[$vo['status']-1]['name']}</td>
						<td>{$vo.wishing}</td>
						<td>{$vo.act_name}</td>
						<td>{$vo.remark}</td>
						<td>{$wxpay_paytype[$vo['pay_type']-1]['name']}</td>
					</tr>
					</foreach>
                <thead>
                    <tr>
						<th>ID</th>
						<th>提现时间</th>
						<th>用户ID</th>
						<th>用户昵称</th>
						<th>提现金额(元)</th>
						<th>状态</th>
						<th>祝福语</th>
						<th>名称</th>
						<th>备注</th>
						<th>类型</th>
                    </tr>
                </thead>
            </table>
            <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>